package top.air.backend.task.model.req;

import java.io.Serial;
import java.time.*;

import jakarta.validation.constraints.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;

import top.continew.starter.extension.crud.model.req.BaseReq;

/**
 * 创建或修改项目参数
 *
 * @author 文艺倾年
 * @since 2025/03/25 17:09
 */
@Data
@Schema(description = "创建或修改项目参数")
public class ProjectInfoReq extends BaseReq {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 项目名称
     */
    @Schema(description = "项目名称")
    @NotBlank(message = "项目名称不能为空")
    @Length(max = 50, message = "项目名称长度不能超过 {max} 个字符")
    private String name;

    /**
     * 项目简介
     */
    @Schema(description = "项目简介")
    @Length(max = 2147483647, message = "项目简介长度不能超过 {max} 个字符")
    private String description;
}
